using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._EditingTools
{
    /// <summary>
    /// <para>Erase Point</para>
    /// <para>Deletes points from the input that are either inside or outside the Remove Features, depending on the Operation Type.</para>
    /// <para>从输入中删除位于“移除特征”内部或外部的点，具体取决于操作类型。</para>
    /// </summary>    
    [DisplayName("Erase Point")]
    public class ErasePoint : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ErasePoint()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input point features.</para>
        /// <para>输入点功能。</para>
        /// </param>
        /// <param name="_remove_features">
        /// <para>Remove Features</para>
        /// <para>Input features inside or outside the Remove Features will be deleted, depending on the Operation Type parameter.</para>
        /// <para>移除要素内部或外部的输入要素将被删除，具体取决于操作类型参数。</para>
        /// </param>
        public ErasePoint(object _in_features, object _remove_features)
        {
            this._in_features = _in_features;
            this._remove_features = _remove_features;
        }
        public override string ToolboxName => "Editing Tools";

        public override string ToolName => "Erase Point";

        public override string CallName => "edit.ErasePoint";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _remove_features, _operation_type.GetGPValue(), _out_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input point features.</para>
        /// <para>输入点功能。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Remove Features</para>
        /// <para>Input features inside or outside the Remove Features will be deleted, depending on the Operation Type parameter.</para>
        /// <para>移除要素内部或外部的输入要素将被删除，具体取决于操作类型参数。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Remove Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _remove_features { get; set; }


        /// <summary>
        /// <para>Operation Type</para>
        /// <para><xdoc>
        ///   <para>Determines if points inside or outside the remove features will be deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>Inside—Input point features inside or on the boundary of the remove features will be deleted.</bullet_item><para/>
        ///     <bullet_item>Outside—Input point features outside the remove features will be deleted.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>确定是删除移除要素内部还是外部的点。</para>
        ///   <bulletList>
        ///     <bullet_item>内部 - 将删除移除要素内部或边界上的输入点要素。</bullet_item><para/>
        ///     <bullet_item>外部 - 移除要素外部的输入点要素将被删除。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Operation Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _operation_type_value _operation_type { get; set; } = _operation_type_value._INSIDE;

        public enum _operation_type_value
        {
            /// <summary>
            /// <para>Inside</para>
            /// <para>Inside—Input point features inside or on the boundary of the remove features will be deleted.</para>
            /// <para>内部 - 将删除移除要素内部或边界上的输入点要素。</para>
            /// </summary>
            [Description("Inside")]
            [GPEnumValue("INSIDE")]
            _INSIDE,

            /// <summary>
            /// <para>Outside</para>
            /// <para>Outside—Input point features outside the remove features will be deleted.</para>
            /// <para>外部 - 移除要素外部的输入点要素将被删除。</para>
            /// </summary>
            [Description("Outside")]
            [GPEnumValue("OUTSIDE")]
            _OUTSIDE,

        }

        /// <summary>
        /// <para>Updated Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public ErasePoint SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}